core: And one more race in multithreaded mkdir -p
authorColin Walters <walters@verbum.org>
Mon, 15 Oct 2012 14:42:18 +0000 (10:42 -0400)
committerColin Walters <walters@verbum.org>
Mon, 15 Oct 2012 14:49:48 +0000 (10:49 -0400)
Sigh =(

src/libotutil/ot-gio-utils.c

index 5c349823701c453ce748b0f7bf28910f27632ad6..43e5a6e690c4fe12a92a0d975c003097e77d9fa0 100644 (file)
@@ -72,7 +72,7 @@ ot_gfile_ensure_directory (GFile     *dir,
               if (!ot_gfile_ensure_directory (parent, TRUE, error))
                 goto out;
             }
-          if (!g_file_make_directory (dir, NULL, error))
+          if (!ot_gfile_ensure_directory (dir, FALSE, error))
             goto out;
         }
       else if (!g_error_matches (temp_error, G_IO_ERROR, G_IO_ERROR_EXISTS))